package com.example.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author yanzhao
 * @date 2022/5/9 13:56
 * @since 1.0.0
 */
@Configuration
public class BeanConfiguration {

    @Bean
    public Teacher createTeacher() {
        Teacher teacher = new Teacher();
        teacher.setName("深田");
        return teacher;
    }
}
